home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World Tours: Brazil
/
WorldTours: Brazil.iso
/
mac
/
content
/
main.dir
/
00104_Script_preLoad2
< prev
next >
Wrap
Text File
|
2007-04-22
|
864b
|
36 lines
property chapter,n
on beginsprite me
n=member(1, "external files").line.count
n=n/2
chapter=[]
repeat with i=1 to n
if the machinetype = 256 then
chapter[i]=preloadNetThing(the moviepath&"chapter\cp"&i&".txt")
else
chapter[i]=preloadNetThing(the moviepath&"chapter:cp"&i&".txt")
end if
end repeat
end
on exitFrame me
allLoaded=true
repeat with i=1 to n
if netDone(chapter[i])=false then allLoaded=false
end repeat
if allLoaded then
repeat with i=1 to n
if the machinetype = 256 then
importFileInto member(i, "chapter"), the moviepath&"chapter\cp"&i&".txt"
else
importFileInto member(i, "chapter"), the moviepath&"chapter:cp"&i&".txt"
end if
end repeat
prepareMainMenu()
go 12
else
go the frame
end if
end